import Client from '../../controller/VodController'

let cl = new Client()

//const koaRouter = require('koa-router')
import koaRouter from 'koa-router'

const router = new koaRouter()
//获取视频上传凭证
router.post('/getUploadAuth', cl.getTest)
//测试
router.get('/vodtest', cl.getTest)
//刷新视频上传凭证
router.post('/refreshUploadAuth', Client.refreshUploadAuth)
//获取视频上传详情
router.post('/getUploadDetails', Client.getUploadDetails)
//获取播放地址
router.post('/getPlayAddress', Client.getPlayAddres)
//获取播放凭证
router.post('/getPlayAuth', Client.getPlayAuth)

export default router
